From: vh249@kneesaa.uk.xensource.com Date: Thu, 29 Sep 2005 15:25:50 +0000 (-0400) Subject: full devices expect to be able to read the partition table during xlvbd_add X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16769^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=188c38b7c8d51956e13c59e5f7290419b6369292;p=xen.git full devices expect to be able to read the partition table during xlvbd_add but couldn't because the device was not marked as BLKIF_CONNECTED and thus blkif_queue_request discarded the read request. fix bug #220 Signed-off-by: Vincent Hanquez --- diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index eec15e3864..82097a4abf 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -469,8 +469,8 @@ static void watch_for_status(struct xenbus_watch *watch, const char *node) return; } - xlvbd_add(sectors, info->vdevice, binfo, sector_size, info); info->connected = BLKIF_STATE_CONNECTED; + xlvbd_add(sectors, info->vdevice, binfo, sector_size, info); blkif_state = BLKIF_STATE_CONNECTED;